Before writing a php application that is not affected by Magic Quotes: you must read chapter 10th magic quotes from Section IV security in the php Manual ". If you haven't read it, it's okay. now it takes 10 minutes to take a look at this in the php
Blankyao said, "The process of learning is to constantly find mistakes, and constantly correct mistakes";
Let's see what the manual says!
For the average person, look at the first two paragraphs.
Magic Quotes
Code:
Magic Quotes is a process this
PHP magic functions automatically escape magic_quotes_gpc and magic_quotes_runtim
PHP provides two magic reference functions for reference data: magic_quotes_gpc and magic_quotes_runtime. when INI is set to on, single quotation marks and double
Understanding and analysis of phpmagic_quotes_gpc. "The process of learning is to constantly discover and correct errors! For average people, the first two paragraphs can be viewed. MagicQuot blkyao says, "the learning process is to constantly
Blankyao said that "the process of learning is to constantly find mistakes, constantly correcting errors";
Let's see what the manual says!
For the average person, just take a look at the first two paragraphs.
Magic Quotes
Code:
Magic Quotes is a
"The learning process is to constantly discover and correct errors," said blankyao ";
Let's take a look at what I said in the manual!
For average people, just look at the first two paragraphs.
Magic quotes
Code:Magic quotes is a process
Read the Thinksaas part of the source code, found that the $_post/$_get over the data processing method is through the function add_s (), that is, the environment by default does not open the MAGIC_QUOTES_GPC, the data submitted to the addslashes ()
The MAGIC_QUOTES_GPC method is based on your php.ini configuration, if you open the MAGIC_QUOTES_GPC to generate, his role and addslashes is the same, let me give a detailed introduction about MAGIC_QUOTES_GPC usage.
Read the Thinksaas part of the
One, CGI mode installation security
Second, the Apache module to install security
When PHP is installed as an Apache module, it inherits the privileges of the Apache user (usually "nobody"). This has some impact on security and authentication. For
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.